package net.flowas.genericcrud.dto;

/**
 * 查询参数的结构约束
 * @author liujh
 *
 * @param <T>
 */
public class QueryOption<T> {
	private T example;
	private Pagination pagingOptions;
    public QueryOption() {}
	public QueryOption(T example, Integer currentPage,Integer pageSize) {
		super();
		this.example = example;
		Pagination page = new Pagination();
		page.setCurrentPage(currentPage);
		page.setPageSize(pageSize);
		this.pagingOptions=page;
	}
	public QueryOption(T example, Pagination pagingOptions) {
		super();
		this.example = example;
		this.pagingOptions = pagingOptions;
	}
	public T getExample() {
		return example;
	}

	public void setExample(T example) {
		this.example = example;
	}

	public Pagination getPagingOptions() {
		return pagingOptions;
	}

	public void setPagingOptions(Pagination pagingOptions) {
		this.pagingOptions = pagingOptions;
	}

}
